package com_djm_2025_05_29;

public class Demo1 {

    public static void main(String[] args) {

        //write your code here........
        long begin = 9;
        long sum = 0;
        int i = 0;
        for(i = 0;i < 10;i++){
            // System.out.print(begin);
            sum += begin;
            begin = begin * 10 + 9;
        }

        System.out.println(sum);


    }
}
